<?php
	include_once('inc/global_init.php');
	session_start();
/*
  ajaxla category ikametleniyor..
 */
if(@$_POST['hizaliyimmi']=="evet") {
	if($_SESSION['hizala']) $_SESSION['hizala'] = false;
	else $_SESSION['hizala'] = true;
}

//if($_SESSION['hizala']==true) {
if(true) {
	if(@$_POST['solust']=="ajaxla" && @$_POST['catID']!="")
	{
		if($_POST['catTop']>0 && $_POST['catLeft']>0) {
			$newcatLeft = $_POST['catLeft'];
			$newcatTop = $_POST['catTop'];

			$conn = db_connect();
			$guncelle = "UPDATE link_cat SET catLeft = '".$newcatLeft."', catTop = '".$newcatTop."' WHERE catID='".$_POST['catID']."';";
			$result = $conn->query($guncelle);
		}
	}
}
?>